* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,body{
    width: 100%;
    height: 100%;
    background-image: url(../pic/cat.jpg);
    background-size: cover;
    background-position: center center;
}
.nav{
    height: 50px;
    width: 100%;
    color: white;
    background-color: rgba(144, 141, 141, 0.5);

    display: flex;
    justify-content: center;
    align-items: center;
}
.nav>img{
    width: 40px;
    height: 40px;
    border-radius:50%;
    margin:5px 10px ;
}
.nav>.space{
    width: 60%;
    display: inline;
}
.nav>.blog-title{
    width: 100px;
}
.nav>.nav-span{
    width: 80px;
    text-decoration: none;
    color: white;
}
.container{
    /* border: 1px solid red; */
    width: 800px;
    height: calc(100% - 50px);
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}
.container>.left{
    width: 20%;
    height: 100%;
    /* border: 1px solid green; */
}
.container>.right{
    width: 79%;
    height: 100%;
    background-color: rgba(255,255,255,0.6);
    padding: 20px;
    border-radius: 10px;
    overflow-y: auto;
    /* border: 1px solid green; */
}

.container>.left>.card{
    width: 100%;
    height: 300px;
    background-color: rgba(255,255,255,0.6);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}
.left>.card>img{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.left>.card>h3{
    margin: 10px 0;
}
.left>.card>a{
    color: gray;
    text-decoration: none;
}
.left>.card>.row {
    width: 100px;
    height: 30px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
}
.left>.card>.row>span{
    width: 50px;
}


/* 搜索框 */
.search-container {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 20px auto;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.search-input:focus {
    outline: none;
    border-color: #c3e6a6;
    box-shadow: 0 4px 12px rgba(195,230,166,0.2);
}

.search-btn {
    /* background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    color: white;
    color: green;
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); */
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    color: white;  /* 恢复白色字体保证可读性 */
    padding: 8px 16px;  /* 调整内边距 */
    border: none;
    border-radius: 8px;  /* 匹配原图圆角 */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 30px;  /* 与"主页"间距 */
    
    /* 新增文字排列属性 */
    white-space: nowrap;  /* 禁止文字换行 */
    line-height: 1.2;  /* 优化行高 */
    letter-spacing: 0.5px;  /* 微调字间距 */
    display: inline-flex;
    align-items: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #9ed858 0%, #4a9c2a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(86,171,47,0.3);
}

/* 占位文字样式 */
.search-input::placeholder {
    color: #a0a0a0;
    opacity: 1;
}